<% if user_signed_in? %>
    <a href="/profile/index">Profile</a>
<% else %>
      <%= link_to('Register', new_user_registration_path)  %>
<% end %>